/* 
 * File:   TLC49X.h
 * Author: Twistx77
 *
 * Created on 29 de noviembre de 2012, 16:10
 */

#ifndef TLC49X_H
#define	TLC49X_H

#include "PowerRGBLEDController.h"

#define XHALF  PORTBbits.RB5
#define BLANK  PORTBbits.RB4
#define XLAT   PORTBbits.RB3
#define SCLK   PORTBbits.RB2
#define SIN    PORTBbits.RB1
#define GSCLK  PORTBbits.RB0

#define MODE   PORTCbits.RC7
#define XERR   PORTCbits.RC6


#define NUMBER_OF_CHANNELS 16
#define PWM_RESOLUTION 12



void TLC594X_Init(void);
void TLC594X_SetGrayScaleValue(uint8_t channel, uint16_t value);

void TLC594X_LoadGrayScaleValues(void);
void TLC594X_LoadDotCorrectionValues(void);


#endif	/* TLC49X_H */

